package cn.xyafu.dao;

import cn.xyafu.po.Lost;

import java.util.HashMap;
import java.util.List;

public interface LostDao {
    //查找所有失物
    public List<Lost> findAllLost(HashMap<String,Object> map);
    //查询失物总数(或关键字)
    public Integer countLost(String lmsg);
    //查询失物总数（按类型)
    public Integer countLostByType(Integer tp);
    //按id查找
    public Lost findByLid(Integer lid);
    //按类型查找
    public List<Lost> findByType(HashMap<String,Object> map);
    //关键字查找
//    public List<Lost> findByKeys(String lmsg);
    //按用户id查找
    public List<Lost> findByUid(Integer uid);
    //删除发布的失物信息
    public Integer deleteByLost(Lost lost);
    //添加失物信息
    public Integer addByLost(Lost lost);
}
